.tabbrowser-tabs > tab {
 -moz-binding: url(chrome://tabtreemix/content/tab/tabmix.xml#browser-tab) !important;
}

.tabbrowser-tabs {
  -moz-binding: url(chrome://tabtreemix/content/tab/tabmix.xml#scroll-tabs) !important;
  background: none !important; 
}

.tabbrowser-tab {
 -moz-binding: url(chrome://tabtreemix/content/tab/tabmix.xml#browser-tab) !important;
}

/* decoration */
tabs[tabbarOrientation=vertical] #horizontal-decoration {
 display:none;
}
tabs[tabbarOrientation=horisontal] #horizontal-decoration {
 display:-moz-box;
}
tabs[tabbarOrientation=vertical] #vertical-decoration {
 display:-moz-box;
}
tabs[tabbarOrientation=horisontal] #vertical-decoration {
 display:none;
}




tabs[flowing=multibar][multibar] .tabs-frame {
  display: block !important;
}
tabs[flowing=multibar][multibar] .tabs-frame .tabs-right {
  display: none !important;
}
/*we need to make multirow work on all themes, this should help a bit*/
tabs[flowing=multibar][multibar],
.tabbrowser-tabs[flowing=multibar][multibar],
tabs[flowing=multibar][multibar] .tabbrowser-strip,
tabs[flowing=multibar][multibar] tab,
tabs[flowing=multibar][multibar] .tabs-left,
tabs[flowing=multibar][multibar] .tabs-right {
  max-height: none !important;
}
tabs[flowing=multibar][multibar=scrollbar] tab {
  min-height: 0px !important;
  min-width: 0px !important;
}
tabs[flowing=multibar][multibar=scrollbar] tab[collapsed=true] {
  display: none !important;
}
tabs[flowing=singlebar] .tabs-frame, tabs[flowing=scrollbutton] .tabs-frame,
tabs[flowing=multibar]:not([multibar]) .tabs-frame {
  overflow: hidden !important;
}

/* For TabX feature*/
.tabbrowser-tabs > tab .tab-close-button {
  display: none;
}

.tabbrowser-tabs:not([firefox2]) > tab[tabxleft=on] .showhover-box {
  -moz-box-direction: reverse;
}
.tabbrowser-tabs[firefox2] > tab[tabxleft=on] .showhover-flex {
    display: none;
}

.tabbrowser-tabs > tab[tabx=always][tabxleft=on] .always-left ,
.tabbrowser-tabs > tab[tabx=always]:not([tabxleft=on]) .always-right ,
.tabbrowser-tabs > tab[tabx=showhover][showbutton=on] .showhover ,
.tabbrowser-tabs > tab[tabx=current][tabxleft=on][selected="true"] .always-left ,
.tabbrowser-tabs > tab[tabx=current]:not([tabxleft=on])[selected="true"] .always-right {
  display: -moz-box;
  padding: 0;
}

/* current & hover */
.tabbrowser-tabs > tab[tabx=current_hover][showbutton=on]:not([selected="true"]) .showhover ,
.tabbrowser-tabs > tab[tabx=current_hover][tabxleft=on][selected="true"] .always-left ,
.tabbrowser-tabs > tab[tabx=current_hover]:not([tabxleft=on])[selected="true"] .always-right {
  display: -moz-box;
  padding: 0;
}

.tabbrowser-tabs > tab .tabs-closebutton {
  padding: 0 !important;
}

.tabbrowser-tabs > tab .tabs-closebutton > .toolbarbutton-icon{
  -moz-padding-end: 0px !important;
  -moz-padding-start: 0px !important;
}

.tabbrowser-tabs > tab .always-left,
.tabbrowser-tabs > tab .always-right {
  margin: 1px 0 -1px 0;
}

.tabbrowser-tabs[firefox2="true"] > tab .showhover {
  margin: -1px 0 -3px 0;
}

.tabbrowser-tabs:not([firefox2]) > tab .showhover {
  margin: -1px 0 -1px 0;
}

.tabbrowser-tabs:not([firefox2]) > tab[tabx=showhover][showbutton=on] .tab-text,
.tabbrowser-tabs:not([firefox2]) > tab[tabx=current_hover][showbutton=on]:not([selected="true"]) .tab-text {
  padding-top: 2px;
}

.tabbrowser-tabs > tab[protected] .tab-close-button {
  display: none !important;
}

.tabbrowser-tabs[hidebutton] > tab .tab-close-button{
  display: none !important;
}

.tabbrowser-tabs[tinywidth] > tab:not([selected="true"]) .always-left,
.tabbrowser-tabs[tinywidth] > tab:not([selected="true"]) .always-right {
  display: none !important;
}

/*support for new icons, hopefully it doesnt break themes*/
.tabbrowser-tabs:not([firefox2]) > tab .tab-close-button {
  -moz-appearance: none;
/*  -moz-margin-start: 2px;*/
  margin-top: 2px;
  border: none !important;
  padding: 0px;
  opacity: 1.0;
}

.tabbrowser-tabs:not([firefox2]) > tab .tab-close-button:focus {
  outline: none !important;
}

/*
.tabbrowser-tabs:not([firefox2]) > tab[selected="true"] .tab-close-button {
  -moz-margin-start: 2px;
  margin-top: 2px;
  -moz-user-focus: normal;
}
*/

tab[selected="true"] .tab-close-button {
  -moz-user-focus: normal;
}

.tabbrowser-tabs:not([firefox2]) > tab[selected="true"] {
  -moz-padding-end: 4px;
  padding-top: 4px;
  padding-bottom: 1px;
}

.tabbrowser-tabs:not([firefox2]) > tab .tab-middle {
  padding-top: 1px;
}

.tabbrowser-tabs:not([firefox2]) > tab[selected="true"] .tab-middle {
  padding-bottom: 1px;
  padding-top: 0;
/*  -moz-padding-start: 0px;*/
  -moz-margin-start: -2px;
  margin-bottom: 1px;
}

.tabbrowser-tabs:not([firefox2]) > tab[first-tab="true"][selected="true"] .tab-middle{
  padding-left: 1px;
}

.tabbrowser-tabs[dontUseNewCloseIcon="true"][firefox2="true"] > tab[selected="true"] .tab-close-button {
  opacity: 1.0;
}

.tabbrowser-tabs:not([dontUseNewCloseIcon])[firefox2="true"] .tab-close-button {
  -moz-image-region: rect(0px, 16px, 16px, 0px);
  opacity: 1.0;
}

.tabbrowser-tabs:not([dontUseNewCloseIcon])[firefox2="true"] .tab-close-button:hover,
.tabbrowser-tabs:not([dontUseNewCloseIcon])[firefox2="true"] tab[tabx=always]:not([selected="true"]) .tab-close-button:hover {
  -moz-image-region: rect(0px, 32px, 16px, 16px) ;
  opacity: 1.0 ;
}

.tabbrowser-tabs:not([dontUseNewCloseIcon])[firefox2="true"] .tab-close-button:hover:active,
.tabbrowser-tabs:not([dontUseNewCloseIcon])[firefox2="true"] tab[tabx=always]:not([selected="true"]) .tab-close-button:hover:active {
  -moz-image-region: rect(0px, 48px, 16px, 32px) ;
  opacity: 1.0 ;
}

.tabbrowser-tabs:not([dontUseNewCloseIcon])[firefox2="true"] tab[tabx=always]:not([selected="true"]) .tab-close-button {
  -moz-image-region: rect(0px, 64px, 16px, 48px);
/*  opacity: 0.7;*/
}

/* For Flowing tabs */
tabs[flowing=multibar] tab {
  vertical-align: bottom;
}

/* For hidding the default tabs-closebutton */
tabs[closebutton=false] .close-button {
  display: none;
}

/* ..... For Scrollable tabs ..... */
.tabs-scroll,
tabs[disableScrollTabsLeft=true][disableScrollTabsRight=true][flowing=scrollbutton] .tabs-scroll{
  display: none;
}

tabs[flowing=scrollbutton] .tabs-scroll {
  display: -moz-box;
}

tabs[flowing=scrollbutton] .tabs-scroll-left-button {
  list-style-image: url("chevron-rtl.gif");
}

tabs[flowing=scrollbutton] .tabs-scroll-right-button {
  list-style-image: url("chevron.gif");
}

tabs[flowing=scrollbutton] .tabs-scroll-left-button[disabled="true"],
tabs[flowing=scrollbutton] .tabs-scroll-right-button[disabled="true"] {
  opacity: 0.5;
}

tabs[flowing=scrollbutton] .tabs-scroll-right-button .toolbarbutton-icon{
  -moz-margin-end: 0px;
  -moz-padding-start: 6px;
}

tabs:not([flowing=multibar])[disableScrollTabsRight=true] .tabs-frame {
  border-right-width: 0px;
}
tabs:not([flowing=multibar])[disableScrollTabsLeft=true] .tabs-frame {
  border-left-width: 0px;
}

.tabs-scroll-up-button,
.tabs-scroll-down-button {
  display: none;
  min-width: 0px;
}

tabs[flowing=multibar][multibar=scrollbar] .tabs-scroll-up-button {
  display: -moz-box;
  list-style-image: url("chevron-up.gif");
}
tabs[flowing=multibar][multibar=scrollbar] .tabs-scroll-down-button {
  display: -moz-box;
  list-style-image: url("chevron-dn.gif");
}
tabs[flowing=multibar][multibar=scrollbar] .tabs-scroll-up-button[disabled="true"],
tabs[flowing=multibar][multibar=scrollbar] .tabs-scroll-down-button[disabled="true"] {
  opacity: 0.5;
}

.tabs-scroll-up-button .toolbarbutton-icon,
.tabs-scroll-down-button .toolbarbutton-icon{
  -moz-margin-end: 0px;
  -moz-padding-start: 4px;
}

/* for miniT drag indicator */
.tab-drag-indicator-left,
.tab-drag-indicator-right {
  display: none;
  background: transparent no-repeat 50% 50%;
  width: 7px;
  height: 12px;
}

tab[dragmark=atLeft] .tab-drag-indicator-left {
  display: -moz-box;
  background-image: url("drag-left.png");
  margin-right: 1px;
}
tab[dragmark=atRight] .tab-drag-indicator-right {
  display: -moz-box;
  background-image: url("drag-right.png");
}

/* Space on tab bar */
tabs #tabs-right-space, tabs #tabs-left-space {
  display: none;
}
tabs[tabBarSpace=true] #tabs-right-space, tabs[tabBarSpace=true] #tabs-left-space {
  display: -moz-box;
  width: 15px;
}
tabs:not([firefox2DefaultTheme]) #firefox2-tabs-left-space {
  display: none;
}

/* for unread and current tab style*/
tabs[unreadTab=true][boldUnread=true] tab:not([selected]) .tab-text,
tabs[currentTab=true][boldCurrent=true] tab[selected="true"] .tab-text {
font-weight: bold !important;
}
tabs[currentTab=true][boldCurrent=false] tab[selected="true"] .tab-text {
font-weight: normal !important;
}

tabs[unreadTab=true][italicUnread=true] tab:not([selected]) .tab-text,
tabs[currentTab=true][italicCurrent=true] tab[selected="true"] .tab-text {
font-style: italic !important;
}
tabs[unreadTab=true][italicUnread=false] tab:not([selected]) .tab-text {
font-style: normal !important;
}

tabs[unreadTab=true][underlineUnread=true] tab:not([selected]) .tab-text,
tabs[currentTab=true][underlineCurrent=true] tab[selected="true"] .tab-text {
text-decoration: underline !important;
}


/* for progressmeter on tab tag */
tabs[progressMeter=true] tab[busy=true] progressmeter.tab-progress {
  display: -moz-box;
}

tab progressmeter.tab-progress {
  width: 100% !important;
  height: 100% !important;
  margin: 0px 0px 0px 0px !important;
  padding: 0px 0px 0px 0px !important;
  min-width: 0px !important;
  min-height: 0px !important;
  border: none;
  display: none;
}

tabs[useProgressColor=true] tab .tab-progress{
  -moz-appearance: none;
  background-color: transparent;
}
tabs[useProgressColor=true] tab .progress-bar{
  -moz-appearance: none;
}

/* for extra icons */
tabs[extraIcons=true] tab[protected] .tab-protect-icon {
  list-style-image: url("protected.png");
  -moz-image-region: rect(0 16px 16px 0);
  display: -moz-box;
  height: 16px;
  width: 16px;
}
tabs[extraIcons=true] tab[locked] .tab-lock-icon {
  list-style-image: url("locked.png");
  -moz-image-region: rect(0 16px 16px 0);
  display: -moz-box;
  height: 16px;
  width: 16px;
}

tab:not([protected]) .tab-protect-icon, tab:not([locked]) .tab-lock-icon,
tabs[extraIcons=false] .tab-protect-icon, tabs[extraIcons=false] .tab-lock-icon {
  display: none;
}

#context-openlink[disabled=true]{
  display: none !important;
}
/* new tab button on tab bar*/
.tabs-newbutton {
  display: -moz-box;
  list-style-image: url("newtab.png");
  max-width: 26px;
  max-height: 26px;
  margin-top: 1px;
  margin-left: 1px;
}

tabs[newTabButton=false] .tabs-newTab {
  display: none;
}

#btn_undoclose, .closedtabs-icon {
  list-style-image: url(undoclosetab.png);
}

#btn_undoclose { -moz-image-region: rect(0 24px 24px 0); }
#btn_undoclose:hover { -moz-image-region: rect(24px 24px 48px 0); }
#btn_undoclose[disabled=true] { -moz-image-region: rect(48px 24px 72px 0); }

toolbar[iconsize=small] #btn_undoclose, .closedtabs-icon .menu-iconic-left{ -moz-image-region: rect(0 40px 16px 24px); }
toolbar[iconsize=small] #btn_undoclose:hover, .closedtabs-icon:hover .menu-iconic-left{ -moz-image-region: rect(16px 40px 32px 24px); }
toolbar[iconsize=small] #btn_undoclose[disabled=true], .closedtabs-icon[disabled=true] .menu-iconic-left{ -moz-image-region: rect(32px 40px 48px 24px); }


#btn_closedwindows , .closedwindows-icon {
  list-style-image: url(undoclosewindow.png);
}

#btn_closedwindows { -moz-image-region: rect(0 24px 24px 0); }
#btn_closedwindows:hover { -moz-image-region: rect(24px 24px 48px 0); }
#btn_closedwindows[disabled=true] { -moz-image-region: rect(48px 24px 72px 0); }

toolbar[iconsize=small] #btn_closedwindows, .closedwindows-icon .menu-iconic-left{ -moz-image-region: rect(0 40px 16px 24px); }
toolbar[iconsize=small] #btn_closedwindows:hover, .closedwindows-icon:hover .menu-iconic-left{ -moz-image-region: rect(16px 40px 32px 24px)!important; }
toolbar[iconsize=small] #btn_closedwindows[disabled=true], .closedwindows-icon[disabled=true] .menu-iconic-left{ -moz-image-region: rect(32px 40px 48px 24px)!important; }

#btn_tabslist, #tm-tabsList {
  list-style-image: url(tabslist.png);
}
#btn_tabslist { -moz-image-region: rect(0 24px 24px 0); }
#btn_tabslist:hover { -moz-image-region: rect(24px 24px 48px 0); }
#btn_tabslist[disabled=true] { -moz-image-region: rect(48px 24px 72px 0); }
toolbar[iconsize=small] #btn_tabslist, #tm-tabsList .menu-iconic-left{ -moz-image-region: rect(0 40px 16px 24px); }
toolbar[iconsize=small] #btn_tabslist:hover, #tm-tabsList:hover .menu-iconic-left{ -moz-image-region: rect(16px 40px 32px 24px); }
toolbar[iconsize=small] #btn_tabslist[disabled=true], #tm-tabsList[disabled=true] .menu-iconic-left{ -moz-image-region: rect(32px 40px 48px 24px); }

#tabmix-menu , #btn-sm-settings, #tm-sm-settings {
   list-style-image: url(tmpsmall.png);
}
#tm-sm-settings .menu-iconic-left { -moz-image-region: rect(0 16px 16px 0)!important; }

#btn_sessionmanager, #tm-sessionmanager {
  list-style-image: url(sessionmanager.png);
}
#btn_sessionmanager { -moz-image-region: rect(0 24px 24px 0); }
#btn_sessionmanager:hover { -moz-image-region: rect(24px 24px 48px 0); }
#btn_sessionmanager[disabled=true] { -moz-image-region: rect(48px 24px 72px 0); }
toolbar[iconsize=small] #btn_sessionmanager, #tm-sessionmanager .menu-iconic-left{ -moz-image-region: rect(0 40px 16px 24px); }
toolbar[iconsize=small] #btn_sessionmanager:hover, #tm-sessionmanager:hover .menu-iconic-left{ -moz-image-region: rect(16px 40px 32px 24px); }
toolbar[iconsize=small] #btn_sessionmanager[disabled=true], #tm-sessionmanager[disabled=true] .menu-iconic-left{ -moz-image-region: rect(32px 40px 48px 24px); }


#current-underline span, #unread-underline span{
   text-decoration: underline;
}
/* fix icon for menu item without image in tabmix menu list */
.fix-bookmark-item .menu-iconic-left {
  -moz-image-region: rect(0 16px 16px 0)!important;
}

#BrowserPreferences radio[pane=paneTabs]:hover,
#BrowserPreferences radio[pane=paneTabs] {
  list-style-image: url(tmp.png);
  -moz-image-region: rect(0, 32px, 32px, 0);
}

#btn_tabtreemix {
  list-style-image: url(tmpsmall.png);
}

#btn_tabtreemix .button-icon {
  margin-top: 0px;
  margin-bottom: 0px;
  -moz-margin-start: 0px;
  -moz-margin-end: 5px;
}

/* fix dropmarker orient for toolbarbutton[type="menu"] in FF 2.0 + */
#btn_undoclose[firefox2][type="menu"] ,#btn_closedwindows[firefox2][type="menu"] ,
#btn_tabslist[firefox2][type="menu"] ,#btn_sessionmanager[firefox2][type="menu"] {
  -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical");
}

/* for hashcoulouredtabs */
#content[hashedtabs] .tabbrowser-tab:not([busy]) .tab-icon-image:not([src]) {
  list-style-image: none !important;
}

/* for all tab list in firefox 1.0, 1.5*/
/* we don't need this in FF 2.0 +*/
.alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
  list-style-image: url("chrome://global/skin/throbber/Throbber-small.gif");
  opacity: 0.6;
}

.alltabs-item[selected="true"] {
  font-weight: bold;
}


/* tab look */
tabs[tabbarOrientation=vertical] .tabbrowser-tab > .tab-image-left {
  background: url("chrome://tabtreemix/skin/tab-vertical.png") repeat-x;
  border: solid 1px #92918e;
  border-right:none;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-bottomleft: 5px;
  min-height: 24px;
}

tabs[tabbarOrientation=vertical] .tabbrowser-tab > .tab-image-middle {
  background: url("chrome://tabtreemix/skin/tab-vertical.png") repeat-x;
  border-top: solid 1px #92918e;
  border-bottom: solid 1px #92918e;
  min-height: 24px;
}

tabs[tabbarOrientation=vertical] .tabbrowser-tab > .tab-image-right {
  background: url("chrome://tabtreemix/skin/tab-vertical.png") repeat-x;
  border-top: solid 1px #92918e;
  border-bottom: solid 1px #92918e;
  -moz-border-radius-topright: 0px;
  -moz-border-radius-bottomright: 0px;
  min-height: 24px;

  border-right: solid 1px #deddd9;
}


tabs[tabbarOrientation=vertical] .tabbrowser-tab:not([selected="true"]) > .tab-image-left {
  background: url("chrome://tabtreemix/skin/tab-vertical-bkgnd.png") repeat-x;
  border: solid 1px #b2b1ad;
  border-right:none;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-bottomleft: 5px;
}

tabs[tabbarOrientation=vertical] .tabbrowser-tab:not([selected="true"]) > .tab-image-middle {
  background: url("chrome://tabtreemix/skin/tab-vertical-bkgnd.png") repeat-x;
  border-top: solid 1px #b2b1ad;
  border-bottom: solid 1px #b2b1ad;
}

tabs[tabbarOrientation=vertical] .tabbrowser-tab:not([selected="true"]) > .tab-image-right {
  background: url("chrome://tabtreemix/skin/tab-vertical-bkgnd.png") repeat-x;
  border-top: solid 1px #b2b1ad;
  border-bottom: solid 1px #b2b1ad;
  border-right: solid 1px #92918e;
}



tabs[tabbarOrientation=vertical] .tabbrowser-tab:hover:not([selected="true"]) > .tab-image-left {
  background: url("chrome://tabtreemix/skin/tab-vertical.png") repeat-x;
  border: solid 1px #92918e;
  border-right:none;
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-bottomleft: 5px;
}

tabs[tabbarOrientation=vertical] .tabbrowser-tab:hover:not([selected="true"]) > .tab-image-middle {
  background: url("chrome://tabtreemix/skin/tab-vertical.png") repeat-x;
  border-top: solid 1px #92918e;
  border-bottom: solid 1px #92918e;
}

tabs[tabbarOrientation=vertical] .tabbrowser-tab:hover:not([selected="true"]) > .tab-image-right {
  background: url("chrome://tabtreemix/skin/tab-vertical.png") repeat-x;
  border-top: solid 1px #92918e;
  border-bottom: solid 1px #92918e;
  border-right: solid 1px #92918e;
}

.tabtreesplitter {
  border-left: none;
}

.tabs-left-decoration {
 width: 4px;
 border-right: solid 1px #92918e;
}

.tabbrowser-strip {
 width: 150px;
}


tabs[flowing=scrollbutton][tabbarOrientation=vertical] .tabs-scroll-left-button {
  list-style-image: url("chevron-up.gif");
}
tabs[flowing=scrollbutton][tabbarOrientation=vertical] .tabs-scroll-right-button {
  list-style-image: url("chevron-dn.gif");
}

tabs[closebutton=false] .close-button-vertical {
  display: none;
}
tabs[tabbarOrientation=horizontal] .close-button-vertical {
  display: none;
}
tabs[tabbarOrientation=vertical] .close-button {
  display: none;
}


.vertical-tab-drop-indicator-bar {
 display:none;
 height: 11px;
 margin-left: -8px;
 margin-right: -3px;
 position: relative;
}

.vertical-tab-drop-indicator {
 height: 11px;
 width: 11px;
 position: relative;
 background: url('tabDragIndicator-vertical.png') 50% 50% no-repeat;
}

.vertical-tab-drop-indicator-bar[dragging="true"] {
 display: -moz-box;
}
